#include <stdio.h>

int main()
{
    char ch = -1;       // 1111 1111
    short sh = -1;      // 1111 1111 - 1111 1111
    int in = -1;        // 1111 1111 - 1111 1111 - 1111 1111 - 1111 1111
    printf("%hhx\n",ch);
    printf("%hx\n",sh);
    printf("%x\n",in);
    printf("%u\n",(unsigned char)ch);
    printf("%u\n",ch);
    return 0;
}
